﻿//====================================================================
// Create by Daniel
// Copyright: YunStudio Inc.
// file： YCUserRoleActions.cs
// project ：YunCMS
// Build time：2012-09-22
// modify:
// description:
// ===================================================================
using System;
namespace YunCMS.Model
{
	/// <summary>
	///YCUserRoleActions Model
	/// </summary>
	[Serializable]
	public class YCUserRoleActions
	{
		#region 
		private int _id;
		private int _roleid;
		private int _actionid;
		private string _note = String.Empty;

        private string _name = String.Empty;
        private string _actiontype = String.Empty;
        private string _module = String.Empty;
        private int? _category;
        private string _actionvalue = String.Empty;
        private string _pageurl = String.Empty;
		#endregion
		
		#region 
		///<summary>
		///Constructor
		///</summary>
		public YCUserRoleActions()
		{
		}
		///<summary>
		///Constructor
		///</summary>
		public YCUserRoleActions
		(
			int id,
			int roleid,
			int actionid,
			string note
		)
		{
			_id       = id;
			_roleid   = roleid;
			_actionid = actionid;
			_note     = note;
			
		}
		#endregion
		
		#region 
		
		///<summary>
		///ID
		///</summary>
		public int ID
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///Role's ID
		///</summary>
		public int RoleID
		{
			get {return _roleid;}
			set {_roleid = value;}
		}

		///<summary>
		///ActionID
		///</summary>
		public int ActionID
		{
			get {return _actionid;}
			set {_actionid = value;}
		}

		///<summary>
		///Note
		///</summary>
		public string Note
		{
			get {return _note;}
			set {_note = value;}
		}

        ///<summary>
        ///Name
        ///</summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        ///<summary>
        ///ActionType
        ///</summary>
        public string ActionType
        {
            get { return _actiontype; }
            set { _actiontype = value; }
        }

        ///<summary>
        ///Module
        ///</summary>
        public string Module
        {
            get { return _module; }
            set { _module = value; }
        }

        ///<summary>
        ///Category
        ///</summary>
        public int? Category
        {
            get { return _category; }
            set { _category = value; }
        }

        ///<summary>
        ///ActionValue
        ///</summary>
        public string ActionValue
        {
            get { return _actionvalue; }
            set { _actionvalue = value; }
        }

        ///<summary>
        ///PageUrl
        ///</summary>
        public string PageUrl
        {
            get { return _pageurl; }
            set { _pageurl = value; }
        }
	
		#endregion	
	}
}



